import random

player = int(input())  # 石头1，剪刀2，布3
computer = random.randint(1, 3)
print(computer)
if (player == 1 and computer == 2) or (player == 2 and computer == 3) or (player == 3 and computer == 1):
    print('you win')
elif player == computer:
    print('again')
else:
    print('you lose')
# print(random.randint(1,3))
